﻿using System.Security.Cryptography;
using System.Text;
using YamlDotNet.Core.Tokens;

namespace ProxyServer.Acme
{
    public static class AcmeHelper
    {
        public static string ComputeHash(string value)
        {
            using (var sha = SHA256.Create())
            {
                var hash = sha.ComputeHash(Encoding.UTF8.GetBytes(value));
                return BitConverter.ToString(hash).Replace("-", "");
            }
        }
    }
}
